<books>
{
for $book in doc("catalog.xml")/bookcatalog/section/book
let $t := $book/title/text() order by $t return
<book><title>{$t}</title></book>
}
</books>
